-- GENERATED SPELL FOR [Blackrock Hunter] --


function spell0_4462(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_4462', 15000, 1)
end

function spell1_4462(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4462', 500, 1)
end

function Sorts_4462(pUnit, Event)
local choix_sorts_4462 = math.random(0, 1)
if choix_sorts_4462 == 0 then
pUnit:RegisterEvent('spell0_4462', 1, 1)
end
if choix_sorts_4462 == 1 then
pUnit:RegisterEvent('spell1_4462', 1, 1)
end
end

function mob4462_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4462', math.random(1500, 3000), 1)
end

function mob4462_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4462_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4462_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4462, 1, 'mob4462_Action')
RegisterUnitEvent(4462, 2, 'mob4462_Leave')
RegisterUnitEvent(4462, 3, 'mob4462_Kill')
RegisterUnitEvent(4462, 4, 'mob4462_Die')
